FOR %F IN (*.shp) DO ogrinfo -sql "CREATE SPATIAL INDEX ON %~nF" %F